package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.TagDiscountHouseMapper;
import com.ruoyi.yipaiju.domain.TagDiscountHouse;
import com.ruoyi.yipaiju.service.ITagDiscountHouseService;

/**
 * fo_tag_discount_houseService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class TagDiscountHouseServiceImpl implements ITagDiscountHouseService 
{
    @Autowired
    private TagDiscountHouseMapper tagDiscountHouseMapper;

    /**
     * 查询fo_tag_discount_house
     * 
     * @param id fo_tag_discount_house主键
     * @return fo_tag_discount_house
     */
    @Override
    public TagDiscountHouse selectTagDiscountHouseById(Long id)
    {
        return tagDiscountHouseMapper.selectTagDiscountHouseById(id);
    }

    /**
     * 查询fo_tag_discount_house列表
     * 
     * @param tagDiscountHouse fo_tag_discount_house
     * @return fo_tag_discount_house
     */
    @Override
    public List<TagDiscountHouse> selectTagDiscountHouseList(TagDiscountHouse tagDiscountHouse)
    {
        return tagDiscountHouseMapper.selectTagDiscountHouseList(tagDiscountHouse);
    }

    /**
     * 根据业务主键查询一条记录：fo_tag_discount_house
     *
     * @param tagDiscountHouse fo_tag_discount_house
     * @return fo_tag_discount_house
     */
    @Override
    public TagDiscountHouse selectOneTagDiscountHouse(TagDiscountHouse tagDiscountHouse)
    {
        return tagDiscountHouseMapper.selectOneTagDiscountHouse(tagDiscountHouse);
    }

    /**
     * 新增fo_tag_discount_house
     * 
     * @param tagDiscountHouse fo_tag_discount_house
     * @return 结果
     */
    @Override
    public int insertTagDiscountHouse(TagDiscountHouse tagDiscountHouse)
    {
        return tagDiscountHouseMapper.insertTagDiscountHouse(tagDiscountHouse);
    }

    /**
     * 修改fo_tag_discount_house
     * 
     * @param tagDiscountHouse fo_tag_discount_house
     * @return 结果
     */
    @Override
    public int updateTagDiscountHouse(TagDiscountHouse tagDiscountHouse)
    {
        return tagDiscountHouseMapper.updateTagDiscountHouse(tagDiscountHouse);
    }

    @Override
    public int updateTagDiscountHouseCondition(TagDiscountHouse tagDiscountHouse, TagDiscountHouse tagDiscountHouseCondition)
    {
        return tagDiscountHouseMapper.updateTagDiscountHouseCondition(tagDiscountHouse, tagDiscountHouseCondition);
    }

    /**
     * 批量删除fo_tag_discount_house
     * 
     * @param ids 需要删除的fo_tag_discount_house主键
     * @return 结果
     */
    @Override
    public int deleteTagDiscountHouseByIds(Long[] ids)
    {
        return tagDiscountHouseMapper.deleteTagDiscountHouseByIds(ids);
    }

    /**
     * 删除fo_tag_discount_house信息
     * 
     * @param id fo_tag_discount_house主键
     * @return 结果
     */
    @Override
    public int deleteTagDiscountHouseById(Long id)
    {
        return tagDiscountHouseMapper.deleteTagDiscountHouseById(id);
    }

    /**
     * 条件删除fo_tag_discount_house
     *
     * @param tagDiscountHouse fo_tag_discount_house
     * @return 结果
     */
    @Override
    public int deleteTagDiscountHouseByCondition(TagDiscountHouse tagDiscountHouse)
    {
        return tagDiscountHouseMapper.deleteTagDiscountHouseByCondition(tagDiscountHouse);
    }

}
